Fix for r96344: explicitly set $wgExtensionAssetsPath during tests
authorMax Semenik <maxsem@users.mediawiki.org>
Tue, 6 Sep 2011 16:47:05 +0000 (16:47 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Tue, 6 Sep 2011 16:47:05 +0000 (16:47 +0000)
tests/parser/parserTest.inc
tests/phpunit/includes/parser/NewParserTest.php

index b52afb4..6d2b225 100644 (file)
@@ -136,13 +136,14 @@ class ParserTest {
                        $wgUser, $wgLang, $wgOut, $wgRequest, $wgStyleDirectory, $wgEnableParserCache,
                        $wgNamespaceAliases, $wgNamespaceProtection, $wgLocalFileRepo,
                        $parserMemc, $wgThumbnailScriptPath, $wgScriptPath,
-                       $wgArticlePath, $wgStyleSheetPath, $wgScript, $wgStylePath;
+                       $wgArticlePath, $wgStyleSheetPath, $wgScript, $wgStylePath, $wgExtensionAssetsPath;
 
                $wgScript = '/index.php';
                $wgScriptPath = '/';
                $wgArticlePath = '/wiki/$1';
                $wgStyleSheetPath = '/skins';
                $wgStylePath = '/skins';
+               $wgExtensionAssetsPath = '/extensions';
                $wgThumbnailScriptPath = false;
                $wgLocalFileRepo = array(
                        'class' => 'LocalRepo',
index edef61b..15247e3 100644 (file)
@@ -231,6 +231,7 @@ class NewParserTest extends MediaWikiTestCase {
                        'wgScript' => '/index.php',
                        'wgScriptPath' => '/',
                        'wgArticlePath' => '/wiki/$1',
+                       'wgExtensionAssetsPath' => '/extensions',
                        'wgActionPaths' => array(),
                        'wgLocalFileRepo' => array(
                                'class' => 'LocalRepo',